package com.lib.image.ex

import android.content.Context
import android.util.TypedValue
import com.lib.image.picker.IosBottomListWindow

/**
 * @Author: shalei
 * @Date: 2019-10-25 13:29
 * @Desc:
 **/

fun IosBottomListWindow.dpToPx(dp: Float, context: Context): Float = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, context.resources.displayMetrics)